import React, { Component } from 'react'
import IndexRouter from './router'
import store from './redux/store'
export default class App extends Component {

  state = {
    isShow: true
  }
  componentDidMount(): void {
    store.subscribe(() => {
      this.setState({
        isShow: store.getState().isShow
      })
    })
  
  }

  render() {
    return (
      <div>
        <IndexRouter></IndexRouter>
        -----------------
        {this.state.isShow ? 'True' : 'False'}
      </div>
    )
  }
}
